package cn.java76.springboot.demo1.dao;



import cn.java76.springboot.demo1.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OVideoMapper {
    //模糊查找资源   根据 标题String
    public List<OVideo> find(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("title") String title, @Param("courseid") String courseid, @Param("stardate") Date stardate, @Param("enddate") Date enddate);
    // 模糊查询 条数 int
    public int findTotal(@Param("title") String title, @Param("courseid") String courseid, @Param("stardate") Date stardate, @Param("enddate") Date enddate);
    //添加视频
    public int add(OVideo oVideo);
    public int update(OVideo oVideo);
    public int del(long id);
    public OVideo get(long id);
    public List<OVideo> findname();
}
